package org.sundayli.config;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ConfigManager {
  @Getter(AccessLevel.NONE)
  @Setter(AccessLevel.NONE)
  private static ConfigManager configManager;

  // 运行端口
  private int port = 7777;
  // 命令最大长度
  private int commandMaxBufferLength = 20000;

  public static ConfigManager init() {
    configManager = new ConfigManager();
    return configManager;
  }
}
